/**
 * Create number for the game and make up a question for each new games,this is hard level all the questions will be in rage of very small number. 
 * @author Kridpak Vorametpasuk 5510546638
 * @version May 09 2013
 */
public class VeryEasyGameFactory extends GameFactory{
	private int max = 250;
	private int min = 100;
	private int[] nums;
	private int question;
	
	@Override
	public void createNum() {
		nums = new int[9];
		nums[0] = (int) (Math.random()*(question)/2);
		nums[1] = (int) (Math.random()*(nums[0]));
		nums[2] = question-(nums[0]+nums[1]);
		nums[3] = (int) (Math.random()*(nums[0])+4);
		nums[4] = (int) (Math.random()*(nums[0])+2);
		nums[5] = (int) (Math.random()*(nums[2])+6);
		nums[6] = (int) (Math.random()*(nums[2])+12);
		nums[7] = (int) (Math.random()*(nums[1])+11);
		nums[8] = (int) (Math.random()*(nums[1])+3);
		
		}

	@Override
	public int[] getNum() {
		return nums;
	}

	@Override
	public int getQuestion() {
		 
		return question;
	}

	@Override
	public void newQuestion() {
		
		question = (int) ((System.nanoTime() * 1e9) % min + min);
		 
	}

	@Override
	public int getScoreExtra() {
		return 10;
	}

}
